package com.budwk.app.miniapp.models;

import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 事件推送记录对象 wx_event_push
 *
 * @author dfxy
 * @date 2023-03-13
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Table("wx_event_push")
public class WxEventPush extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单单号
     */
    @Id
    @Column
    @Comment("订单单号")
    @ApiModelProperty(description = "订单单号")
    @ColDefine(type = ColType.INT, width = 64)
    private Long id;

    /**
     * 事件发起人id
     */
    @Column
    @Comment("事件发起人id")
    @ApiModelProperty(description = "事件发起人id")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String openid;

    /**
     * 事件发起人姓名
     */
    @Column("user_name")
    @Comment("事件发起人姓名")
    @ApiModelProperty(description = "事件发起人姓名")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String userName;

    /**
     * 标题
     */
    @Column("event_title")
    @Comment("标题")
    @ApiModelProperty(description = "标题")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String eventTitle;

    /**
     * 推送内容详情
     */
    @Column("push_content")
    @Comment("推送内容详情")
    @ApiModelProperty(description = "推送内容详情")
    @ColDefine(type = ColType.VARCHAR, width = 2000)
    private String pushContent;

    /**
     * 备注
     */
    @Column
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String remark;

    /**
     * 事件id
     */
    @Column("event_id")
    @Comment("事件id")
    @ApiModelProperty(description = "事件id")
    @ColDefine(type = ColType.INT, width = 64)
    private Long eventId;
}
